﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="控件試用.aspx.cs" Inherits="web用戶控件_控件試用" %>
<%@ Register Assembly="驗證控件" Namespace="FormValidation" TagPrefix="cc3" %>
<%@ Register Assembly="驗證控件" Namespace="驗證控件" TagPrefix="cc4" %>
<%@ Register Assembly="web表单验证控件" Namespace="CheckForm" TagPrefix="cc2" %>
<%@ Register Assembly="GameToolControl" Namespace="GameToolControl" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<link href="http://localhost/game/css/Tong_Admin_Css.css" type="text/css"  rel="Stylesheet"/>
<script language="javascript" src="http://localhost/game/inc/js/salert.js" type="text/javascript"></script>
<script language="javascript" src="Handler.ashx" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div >
        &nbsp;&nbsp;&nbsp;
        <cc1:ToolBarControl ID="ToolBarControl1" runat="server" 保存图片的图片="~/Admine/img/add.gif"
            删除数据图片路徑="http://localhost/game//Admine/img/delete.gif" 查找数据图片路徑="http://localhost/game//Admine/img/find.gif"
            編輯数据图片路徑="http://localhost/game//Admine/img/edit.gif" 显示查找資料="显示" 删除数据事件="alert(PageFindBox.innerHTML)" 查找数据事件="PageFind(event);" />
        &nbsp;
        <cc1:ServerComtrol ID="ServerComtrol1" runat="server" Title="111" />
        <br />
       
        <br />
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Admine/img/add.gif"  />
        
        
        <div id="cc"></div>  <cc3:FormValidation ID="FormValidationVer3_1" runat="server" Text="adfsadf "/>
        <script language="javascript" type="text/javascript">
    //创建IE里的XMLHTTP对象
    var xmlhttp;
    try
    {
        xmlhttp = new ActiveXObject("MSXML2.xmlhttp")
    }
    catch(e)
    {
        alert(e);
    }
    
    if(!xmlhttp)//创建对象异常
    {
	    window.alert("不能创建XMLHttpRequest对象实例.");
	   
    }
    
   // xmlhttp.onreadystatechange=treating;//不知道这什么要放在他的上面
   // xmlhttp.open("get","http://localhost/blog/default.aspx",false);//初始化对象联接
    xmlhttp.open("get",document.form1.xurlx.value,true);//初始化对象联接
    xmlhttp.send();//发送请求到http服务器并接收回应
    try
    {
      var aa = xmlhttp.responseText;
      document.getElementById("cc").innerText+=aa;
      alert(aa);
    }
    catch(e)
    {
          document.getElementById("cc").innerText+=e;
    }
        </script>
        
        
        <!--
        <script language="javascript" src="http://localhost/game/inc/js/ajaxclass.js" type="text/javascript"></script>

        先不看
      
       
-->

        <cc4:使用WebReSource顯示圖片 ID="使用WebReSource顯示圖片1" runat="server" />
        asasa
 
<cc4:用WebResSource类显示图片和XML文件 ID="用WebResSource类显示图片和XML文件2" runat="server" />


llllll


        <cc4:读取文本文件 ID="读取文本文件1" runat="server" />
</div>


    </form>
<script language="javascript" type="text/javascript">
//頁面查找函數
function PageFind(aa)
{
    var left = aa.screenX;//層的邊距
    var top = aa.screenY;//層的邊距

    //設計顯示樣式
    var css = "<style>.PageFindBox{color:#990099}<\/style>";
    var html = "<form name='search'><div id=\"PageFindBox\" class=\"PageFindBox\" style=\"position:absolute;left:"+left+"px;top:"+top+"px;width:207px;height:253px;z-index:1;border: 1px dashed #0099CC;\"  >";
    html+= "<label for=\"textfield\">关键字<\/label>";
    html+= "<input name=\"textfield\" type=\"text\" id=\"textfield\" accesskey=\"S\" size=\"20\" \/> <span onclick=\"sAlert('aaaaa')\">給我搜<\/span>";
    html+="<\/div><span style='course:pointer;'>             关闭</span></form>";
    try
    {
        document.getElementById("PageFindBox").InnerHTML;
        
    }
    catch(e)
    {
        var cont =  document.createElement("div");//創建一個dom div對象
        cont.innerHTML=html;//加入HＴＭＬ
        document.body.appendChild(cont);//加入到ＢＯＤＹ
    }
}







"Validator.Setup(\r\n"+
"{\r\n"+
"	Name : 'form1',\/\/這個要對應XML文件\r\n"+
"	DataSource : '',\r\n"+
"	DataSourceType : Validator.Enumerate.DataSourceType.Attribute | Validator.Enumerate.DataSourceType.Xml,\r\n"+
"	ValidateType : Validator.Enumerate.ValidateType.Submit | Validator.Enumerate.ValidateType.Blur,\r\n"+
"	AlertType : Validator.Enumerate.AlertType.Color | Validator.Enumerate.AlertType.SummarySingle ,\r\n"+
"	Summary : 'demo_Summary',\r\n"+
"	XPath : {Path : 'aa', \/\/這個要對應XML文件\r\n"+
"	Xml:'ajaxpro/Validation.xml'\r\n"+
"	}\r\n"+
"}\r\n"+
");\r\n"+

"function SetupPro()\r\n"+
"{\r\n"+
"    return 'ajaxpro/Validation.xml';\r\n"+
"}\r\n"+







</script>

</body>
</html>
